<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="application/xml; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="poketrade.entities.PendingOffer,java.util.List" %>
    
    <%
    List<PendingOffer> annonces = (List<PendingOffer>) request.getAttribute("offres");
    %>
<rows> 
	<page>1</page> 
	<total>1</total> 
	<records><%=annonces.size() %></records>
	<%
	for (PendingOffer c : annonces) {
	%> 
	<row id = "<%=c.getId()%>"> 
		<cell><%=c.getOfferer().getPseudo() %></cell>
		<cell><%=c.getOffer().getNom() %></cell>
		<cell><%=c.getOffer().getDescription() %></cell>
		<cell><%=c.getBasePrice() %></cell>
		<cell><%=c.getOfferer().getCote() %></cell>
		<cell> acheter </cell>
	</row>
	<%
	}
	%> 
</rows>